{# ################## #}
{# #   							       #}
{# #  LEFT CONTROL BAR: ACTIVE FACETS LIST  #}
{# # 								   #}
{# ################## #}




<h2>Selected Filters 
	<small class="no_facets">
		<a id="empty_controls" title="Remove all terms" href="?resulttype={{result_typeObj.uniquename}}">
		(reset)
		</a>
	</small>							
{# <li class="i4"><a title="why do I see these results?" onClick="explain_results()"><b>Explain </b></a></li> #}
</h2> 

{% if query_filtersBuffer %}
	<ul id="active_filters">
		{% for facetValue in  query_filtersBuffer %}

{# [** this routine dynamically removes from the query-url-stub the facetvalue currently printed **] #}
{# for each facetvalue active in the current query-url, rebuilds the REMOVE action url #}
{# by doing so, the url generate can be effectively used as an 'ADD' url too! #}

		<li id="{{facetValue.id}}">{{facetValue.facet.group.label}} &gt;&gt; {{facetValue.facet.name}} &gt;&gt; 
			<strong>{{facetValue.displayname}}</strong> 
			<a id="remove_button" title="Remove this term" href="?resulttype={{result_typeObj.uniquename}}
				{% for fv in query_filtersBuffer %}
					{% ifnotequal fv.id  facetValue.id  %}
						&amp;filter={{fv.id}}
					{% endifnotequal %}
				{% endfor %}">[remove]</a>
		</li>
		

		{% endfor %}
	</ul>
{% else %}

	<ul>
		<li class="no_facets">none</li>
	</ul>
	
{% endif  %}



{# 2010-07-07 hidden fields for BlockUI message : still needed? #}

<div id="blockUImessage1" style="display:none">
</div>

<div id="blockUImessage2" style="display:none">
</div>

